/*
 * Copyright (c) 2001-2023 cnstrong.cn Corporation Limited. All rights reserved.
 * This software is the confidential and proprietary information of cnstrong.cn Company.
 * ("Confidential Information").
 * You shall not disclose such Confidential Information and shall use it only
 * in accordance with the terms of the license agreement you entered into with cnstrong.cn.
 */
package com.tree.config.configuration.codis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

import lombok.Getter;

/**
 * Codis 属性配置
 *
 * @author Braveheart
 * @version V1.0
 * @since 2023-12-29
 */
@Component
@Getter
public class WeTreeCodisProperties {

    @Value("${bigsword.dict.codis.enable}")
    private boolean enable;

    @Value("${consult.codis.maxTotal}")
    private int maxTotal;

    @Value("${consult.codis.maxIdle}")
    private int maxIdle;

    @Value("${consult.codis.maxWaitMillis}")
    private long maxWaitMillis;

    @Value("${consult.codis.testOnBorrow}")
    private boolean testOnBorrow;

    @Value("${consult.codis.zkServers}")
    private String zkServers;

    @Value("${bigsword.dict.codis.zkCodisProxyDir}")
    private String zkCodisProxyDir;

    @Value("${bigsword.dict.codis.codisPassword}")
    private String codisPassword;
}
